#include"my_string.h"


void test1()
{
	my_string::string a("123456789");
	my_string::string b(a);
	my_string::string c("abcdef");
	c.resize(10, 'g');
	c.resize(20);
	//c.insert(8, "fffff");
	c.insert(8, 'a');
	c.push_back('3');
	c.append("123");
	c.erase(0, 1);
	c.erase(0, 5);
	cout << c.find('g', 2) << endl;
	cout << string::npos << endl;
	cout << (a == b);
	cout << (a > b);
	cout << (a < b);
	cout << (a >= b);
	cout << (a <= b) << endl;
	cout << '\0' << endl;
	cout << c << endl;
	cin >> c;
	cout << c << endl;

}

void testrightvalue()
{
	my_string::string s("hello");
	my_string::string s1(s + " world!");
}

void test2()
{}

int main()
{
	//test1(); 
	testrightvalue();
	return 0;
}
